\section{fsm\+\_\+master.\+c File Reference}
\label{fsm__master_8c}\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}


Ether\+C\+AT master state machine.  


\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{fsm__master_8c_a997e9f2ec2485eb23e2ff0831547b772}} 
\#define \textbf{ E\+C\+\_\+\+S\+Y\+S\+T\+E\+M\+\_\+\+T\+I\+M\+E\+\_\+\+T\+O\+L\+E\+R\+A\+N\+C\+E\+\_\+\+NS}~1000000
\begin{DoxyCompactList}\small\item\em Time difference [ns] to tolerate without setting a new system time offset. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: S\+T\+A\+RT. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: B\+R\+O\+A\+D\+C\+A\+ST. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: R\+E\+AD S\+T\+A\+TE. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: A\+C\+K\+N\+O\+W\+L\+E\+D\+GE. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: C\+O\+N\+F\+I\+G\+U\+RE S\+L\+A\+VE. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: C\+L\+E\+AR A\+D\+D\+R\+E\+S\+S\+ES. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: DC M\+E\+A\+S\+U\+RE D\+E\+L\+A\+YS. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: S\+C\+AN S\+L\+A\+VE. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: DC R\+E\+AD O\+F\+F\+S\+ET. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: DC W\+R\+I\+TE O\+F\+F\+S\+ET. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: W\+R\+I\+TE S\+II. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: S\+DO D\+I\+C\+T\+I\+O\+N\+A\+RY. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master state\+: S\+DO R\+E\+Q\+U\+E\+ST. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Start clearing slave addresses. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Start writing DC system times. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+init} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm, \textbf{ ec\+\_\+master\+\_\+t} $\ast$master, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$datagram)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+clear} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+reset} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Reset state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+exec} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Executes the current state of the state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+idle} (const \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+restart} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Restarts the master state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Check for pending S\+II write requests and process one. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Check for pending S\+DO requests and process one. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master action\+: I\+D\+LE. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master action\+: Get state of next slave. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm)
\begin{DoxyCompactList}\small\item\em Master action\+: Configure. \end{DoxyCompactList}\item 
u64 \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm, u64 system\+\_\+time, u64 old\+\_\+offset, unsigned long jiffies\+\_\+since\+\_\+read)
\begin{DoxyCompactList}\small\item\em Configure 32 bit time offset. \end{DoxyCompactList}\item 
u64 \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$fsm, u64 system\+\_\+time, u64 old\+\_\+offset, unsigned long jiffies\+\_\+since\+\_\+read)
\begin{DoxyCompactList}\small\item\em Configure 64 bit time offset. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT master state machine. 



\subsection{Function Documentation}
\mbox{\label{fsm__master_8c_ad88c4db14716023743578741d24ef356}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+start (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: S\+T\+A\+RT. 

Starts with getting slave count and slave states. 
\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 197 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_aaedaccf13386cf2fd4d210d2b0de49d2}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+broadcast (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: B\+R\+O\+A\+D\+C\+A\+ST. 

Processes the broadcast read slave count and slaves states. 
\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 214 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a6f450d1021bf89f229fd39cc2aad8ea2}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+read\+\_\+state (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: R\+E\+AD S\+T\+A\+TE. 

Fetches the AL state of a slave. 
\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 627 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a334ce30106dc39dc565a258a83abaa5c}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+acknowledge (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: A\+C\+K\+N\+O\+W\+L\+E\+D\+GE. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 682 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_aaf40137bf5c31dc6a5c664ab10933d09}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+configure\+\_\+slave (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: C\+O\+N\+F\+I\+G\+U\+RE S\+L\+A\+VE. 

Starts configuring a slave. 
\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 889 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a61be059802776f90560a2b3af6bc6efa}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+clear\+\_\+addresses (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: C\+L\+E\+AR A\+D\+D\+R\+E\+S\+S\+ES. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 720 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a22d13892f43d288406c5c08bd30bf2fd}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+measure\+\_\+delays (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: DC M\+E\+A\+S\+U\+RE D\+E\+L\+A\+YS. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 764 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a0e4c985906d0e036c4039305621db63e}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+scan\+\_\+slave (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: S\+C\+AN S\+L\+A\+VE. 

Executes the sub-\/statemachine for the scanning of a slave. 
\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 817 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_ad625d5b77974efd8b81ad28cebc76ca9}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+read\+\_\+offset (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: DC R\+E\+AD O\+F\+F\+S\+ET. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 1045 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a411d3aafe085c64e7f5d8aad7b4cf231}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+dc\+\_\+write\+\_\+offset (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: DC W\+R\+I\+TE O\+F\+F\+S\+ET. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 1098 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_ab45ec9b9296a9d89c5c69bfd1a131f22}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+write\+\_\+sii (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: W\+R\+I\+TE S\+II. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 1133 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a51be12a2333f0ce6a1ecde4bed85c648}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+dictionary (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: S\+DO D\+I\+C\+T\+I\+O\+N\+A\+RY. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 1187 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a36ee13ebfe148e663f3c33ca6e408d1f}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request@{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+state\+\_\+sdo\+\_\+request (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master state\+: S\+DO R\+E\+Q\+U\+E\+ST. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 1222 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a8b28c82e05cda964aaf088b49c0544b8}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses@{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses@{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+clear\+\_\+addresses (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Start clearing slave addresses. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 704 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a66d11aeef350f72a207d329c9e617d1b}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times@{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times@{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+enter\+\_\+write\+\_\+system\+\_\+times (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Start writing DC system times. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 917 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a488579eaa191d91cfc1fe034d4995cd2}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+init@{ec\+\_\+fsm\+\_\+master\+\_\+init}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+init@{ec\+\_\+fsm\+\_\+master\+\_\+init}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+init()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+init (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm,  }\item[{\textbf{ ec\+\_\+master\+\_\+t} $\ast$}]{master,  }\item[{\textbf{ ec\+\_\+datagram\+\_\+t} $\ast$}]{datagram }\end{DoxyParamCaption})}



Constructor. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
{\em master} & Ether\+C\+AT master. \\
\hline
{\em datagram} & Datagram object to use. \\
\hline
\end{DoxyParams}


Definition at line 76 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_ad6cb9c34903756062ea8bb72469e9cee}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+clear@{ec\+\_\+fsm\+\_\+master\+\_\+clear}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+clear@{ec\+\_\+fsm\+\_\+master\+\_\+clear}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+clear()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+clear (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Destructor. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 103 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_afbc118dc57b717b9ef64481d279c95af}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+reset@{ec\+\_\+fsm\+\_\+master\+\_\+reset}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+reset@{ec\+\_\+fsm\+\_\+master\+\_\+reset}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+reset()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+reset (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Reset state machine. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 121 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a00fbd64d7585868b5b505a591cc1b508}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+exec@{ec\+\_\+fsm\+\_\+master\+\_\+exec}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+exec@{ec\+\_\+fsm\+\_\+master\+\_\+exec}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+exec()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+master\+\_\+exec (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Executes the current state of the state machine. 

If the state machine\textquotesingle{}s datagram is not sent or received yet, the execution of the state machine is delayed to the next cycle.

\begin{DoxyReturn}{Returns}
true, if the state machine was executed 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 150 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a585646e7a108608984e8abaef1925b19}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+idle@{ec\+\_\+fsm\+\_\+master\+\_\+idle}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+idle@{ec\+\_\+fsm\+\_\+master\+\_\+idle}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+idle()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+master\+\_\+idle (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}

\begin{DoxyReturn}{Returns}
true, if the state machine is in an idle phase 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 169 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a767682798697586629a255018156b3f0}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+restart@{ec\+\_\+fsm\+\_\+master\+\_\+restart}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+restart@{ec\+\_\+fsm\+\_\+master\+\_\+restart}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+restart()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+restart (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Restarts the master state machine. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 180 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a726e0bdb4393a1734a77a59d4ade4210}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sii (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Check for pending S\+II write requests and process one. 

\begin{DoxyReturn}{Returns}
non-\/zero, if an S\+II write request is processed. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 391 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a3db66b3ce0e026d06f3db18abcafc85a}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+process\+\_\+sdo (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Check for pending S\+DO requests and process one. 

\begin{DoxyReturn}{Returns}
non-\/zero, if an S\+DO request is processed. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 429 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_af44b55bff43485d6169b6009b4fc3afb}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+idle (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master action\+: I\+D\+LE. 

Does secondary work. 
\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 483 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a4b4466fd641681334322d7b6185ea041}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+next\+\_\+slave\+\_\+state (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master action\+: Get state of next slave. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 541 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a6d48740d5f6acef41028d1328c8b6135}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure@{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure()}
{\footnotesize\ttfamily void ec\+\_\+fsm\+\_\+master\+\_\+action\+\_\+configure (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Master action\+: Configure. 


\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 569 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_a82f8ab1a2257e91c822222422f2d00c6}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32@{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32@{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32()}
{\footnotesize\ttfamily u64 ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset32 (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm,  }\item[{u64}]{system\+\_\+time,  }\item[{u64}]{old\+\_\+offset,  }\item[{unsigned long}]{jiffies\+\_\+since\+\_\+read }\end{DoxyParamCaption})}



Configure 32 bit time offset. 

\begin{DoxyReturn}{Returns}
New offset. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
{\em system\+\_\+time} & System time register. \\
\hline
{\em old\+\_\+offset} & Time offset register. \\
\hline
{\em jiffies\+\_\+since\+\_\+read} & Jiffies for correction. \\
\hline
\end{DoxyParams}


Definition at line 965 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8c_ac6cb5800d165b3f077ae89caac207471}} 
\index{fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}!ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64@{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64@{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64}!fsm\+\_\+master.\+c@{fsm\+\_\+master.\+c}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64()}
{\footnotesize\ttfamily u64 ec\+\_\+fsm\+\_\+master\+\_\+dc\+\_\+offset64 (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm,  }\item[{u64}]{system\+\_\+time,  }\item[{u64}]{old\+\_\+offset,  }\item[{unsigned long}]{jiffies\+\_\+since\+\_\+read }\end{DoxyParamCaption})}



Configure 64 bit time offset. 

\begin{DoxyReturn}{Returns}
New offset. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
{\em system\+\_\+time} & System time register. \\
\hline
{\em old\+\_\+offset} & Time offset register. \\
\hline
{\em jiffies\+\_\+since\+\_\+read} & Jiffies for correction. \\
\hline
\end{DoxyParams}


Definition at line 1007 of file fsm\+\_\+master.\+c.

